import axios from '@/utils/axios'
import moment from "moment";
import axios1 from '@/utils/downLoad'

export function getEmpRewardPage(params) {
  return axios({
    url: '/EmpReward/page',
    method: 'get',
    data: params
  })
}

export function deleteOneReward(params) {
  return axios({
    url: '/EmpReward/delete',
    method: 'post',
    data: params
  })
}

export function updateOne(params) {
  return axios({
    url: '/EmpReward/updateOne',
    method: 'post',
    data: params
  })
}


export function fileAll() {
  return axios({
    url: '/EmpReward/fileAll',
    method: 'post',
  })
}

export function search(params) {
  return axios({
    url: '/EmpReward/Search',
    method: 'get',
    data: params
  })
}

export function copy(params) {
  return axios1({
    url: '/EmpReward/copy',
    method: 'post',
	excelName:"特殊绩效错误名单"
  })
}